#include <stdio.h>

int main(){

    int num = 42;
    double pi = 3.1415;

    void *vintPtr = &num;
    void *vdoublePtr = &pi;

    int *intPtr = (int *)vintPtr;
    double *doublePtr = (double *)vdoublePtr;

    printf("%d\n", *intPtr);
    printf("%lf\n", *doublePtr);


    return 0;
}